package org.grow.loginto.controller;

import org.grow.loginto.entity.enums.ApplyState;
import org.grow.loginto.entity.enums.AuditState;
import org.grow.loginto.entity.enums.LeaveType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @Author: xwg
 * @CreateDate: 21-6-8
 */
@RestController
@RequestMapping("/basic")
public class BasicController {
    @GetMapping("/ApplyStates")
    public List<Map<String,Object>> ApplyStates(){
        return ApplyState.auditFullStates();
    }
    @GetMapping("/AuditStates")
    public List<Map<String,Object>> AuditStates(){
        return AuditState.auditFullStates();
    }
    @GetMapping("/LeaveTypes")
    public List<Map<String,Object>> LeaveTypes(){
        return LeaveType.auditFullStates();
    }
}
